package com.ruoyi.galaxy.vo.order;

import com.ruoyi.galaxy.vo.GalaxyApiResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author yeoman
 * @date 2025/4/10 18:13
 * @description
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GalaxyApiOrderListResponse extends GalaxyApiResponse {

    private int total;

    private List<GalaxyOrder> list;

    @Data
    public static class GalaxyOrder {

        /**
         * 订单编号
         */
        private String orderToken;

        /**
         * 订单金额
         */
        private String orderMoney;

        /**
         * 订单时间
         */
        private String orderTime;

        /**
         * 订单状态
         */
        private Integer orderState;

        /**
         * 订单失败时间
         */
        private String orderFailureTime;

        /**
         * 订单支付状态
         */
        private Integer orderPayState;

        /**
         * 订单商品数量
         */
        private Integer orderItemsCount;

        /**
         * 订单事件
         */
        private GalaxyOrderEvent orderEvent;

        @Data
        public static class GalaxyOrderEvent {
            /**
             * 事件编号
             */
            private String eventToken;

            /**
             * 事件时间
             */
            private String eventTime;

            /**
             * 订单商品编号
             */
            private String projectToken;

            /**
             * 商品名称
             */
            private String projectName;

            /**
             * 商品图片url
             */
            private String projectImgUrl;

            /**
             * 站点
             */
            private String siteName;
        }

    }

}
